// FIT_6204_Gorodilov_InSegDoc.h : interface of the CFIT_6204_Gorodilov_InSegDoc class
//


#pragma once
#include "FIT_6204_Gorodilov_Line.h"


class CFIT_6204_Gorodilov_InSegDoc : public CDocument
{
protected: // create from serialization only
	CFIT_6204_Gorodilov_InSegDoc();
	DECLARE_DYNCREATE(CFIT_6204_Gorodilov_InSegDoc)

// Attributes
public:

// Operations
public:

// Overrides
public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);

// Implementation
public:
	virtual ~CFIT_6204_Gorodilov_InSegDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
public:
	CArray<CFIT_6204_Gorodilov_Line> m_aLines;
	CSize m_sScrollSize;

public:
	BOOL m_bIsSecondPoint;
	INT_PTR AddLine(const CFIT_6204_Gorodilov_Line line);
	const CFIT_6204_Gorodilov_Line GetLine(const INT_PTR index) const;
	const CFIT_6204_Gorodilov_Line UpDateLine(const INT_PTR index,
		const CFIT_6204_Gorodilov_Line line);
	const INT_PTR GetLinesCount(void) const;
	const CSize GetScrollSize(void) const;
	CFIT_6204_Gorodilov_Point ValidatePoint(const CFIT_6204_Gorodilov_Point &point);
	INT_PTR Sweep(void);
	CArray<CFIT_6204_Gorodilov_Point> I;
};

CString GetNextLine(CArchive &ar);